-
Notifications
You must be signed in to change notification settings - Fork 7
Optimise dockerfiles, fix ci, release images #444
Optimise dockerfiles, fix ci, release images #444
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build is working, but some things are failing or missing.
- The directory
/code
changed, and with this, the bootstrap script stopped working for Docker - The API port changed, so the UI is not working now
- The source files and the utils folder is missing, so the bootstrap script is not available anymore
Keep in mind that the Docker image is not only for deployment, but also for running Underpass locally. Maybe we can have two different Docker images, one for deployment and one for development/testing/running locally.
The standard way to have different environments is to add different stages to the dockerfile. I usually have a |
Made updates: see in the first post. Let me know if anything else needs updating 👍 |
Made the final update just now:
I can build and push the images to the hotosm container registry. |
I will rebase with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mostly working! with docker-compose up -d the UI is not working but if I change the port is working perfectly:
ports:
- "${UI_PORT:-5000}:5000"
CI is failing, possibly because the workflow version and GitHub settings, you know better what changes are needed there.
Thanks @spwoodcock
Easiest to merge this to test my theory: the workflow is failing with image reg permissions as it was created before the GITHUB_TOKEN permissions were set correctly 👍 |
That seemed to work 🎉 |
Fixes #439
Significant image size reductions:
The underpass image could probably be reduced further by selective usage of boost libraries, instead of
libboost-all-dev
.Note
With the images being named ghcr.io/xxx/xxx it would be possible to push them to the underpass repo container registry.
Update 09/11/2023
debug
for local testing.ci
for ci tests.prod
for production image.ci
image, with bundled entrypoint.docker compose
instead ofdocker-compose
)